package com.zt.ztyh.controller;

import com.zt.ztyh.pojo.Bank;
import com.zt.ztyh.service.BankService;
import com.zt.ztyh.vo.common.Result;
import com.zt.ztyh.vo.common.ResultCodeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Java之父卫相阳
 * @date 2024/4/14 19:59
 * OverSion04
 */
@RestController
@RequestMapping("ztyh/user/card")
public class CardController {
    @Autowired
    private BankService bankService;
    @GetMapping("/getlist")
    public Result getlist() {
        List<Bank> list = bankService.list();
        return Result.build(list, ResultCodeEnum.SUCCESS);
    }
}
